* (bug 14132) Allow user to disable bot edits from being output to UDP.
* (bug 14328) jsMsg() within Wikibits now accepts a DOM object, not just a string
* (bug 2889) MediaWiki:Print.css applies to the printable version
+* (bug 14558) New system message (emailuserfooter) is now added to the footer of
+ e-mails sent with Special:Emailuser
=== Bug fixes in 1.13 ===
* check the edit token and ping limiter in advance.
*/
function doSubmit() {
- global $wgUser, $wgUserEmailUseReplyTo;
+ global $wgUser, $wgUserEmailUseReplyTo, $wgSiteName;
$to = new MailAddress( $this->target );
$from = new MailAddress( $wgUser );
$subject = $this->subject;
+ $prefsTitle = Title::newFromText( 'Preferences', NS_SPECIAL );
+
+ // Add a standard footer
+ $this->text = $this->text . "\n" . wfMsg( 'emailuserfooter', array( $wgSitename, $prefsTitle->getFullURL() ) );
+
if( wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$this->text ) ) ) {
if( $wgUserEmailUseReplyTo ) {
'emailccsubject' => 'Copy of your message to $1: $2',
'emailsent' => 'E-mail sent',
'emailsenttext' => 'Your e-mail message has been sent.',
+'emailuserfooter' => 'Please note, $1 cannot be held responsible for the content of this email.
+The option to remove yourself from these mailings is in your preferences
+Check your preferences at $2 and uncheck "Enable e-mail from other users."',
# Watchlist
'watchlist' => 'My watchlist',